package com.lzj.entity;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2021/12/3
 */
public class Address {//用户收件地址
    private int id;
    private String recipients;//收件人
    private String fullAddress;//详细地址
    private String postcode;//邮编号码
    private String phoneNumber;//电话号码
    private int userId;

    public Address() {
    }

    public Address(int userId) {
        this.userId = userId;
    }

    public Address(String recipients, String fullAddress, String postcode, String phoneNumber, int userId) {
        this.recipients = recipients;
        this.fullAddress = fullAddress;
        this.postcode = postcode;
        this.phoneNumber = phoneNumber;
        this.userId = userId;
    }

    public Address(int id, String recipients, String fullAddress, String postcode, String phoneNumber, int userId) {
        this.id = id;
        this.recipients = recipients;
        this.fullAddress = fullAddress;
        this.postcode = postcode;
        this.phoneNumber = phoneNumber;
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRecipients() {
        return recipients;
    }

    public void setRecipients(String recipients) {
        this.recipients = recipients;
    }

    public String getFullAddress() {
        return fullAddress;
    }

    public void setFullAddress(String fullAddress) {
        this.fullAddress = fullAddress;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Address{" +
                "id=" + id +
                ", recipients='" + recipients + '\'' +
                ", fullAddress='" + fullAddress + '\'' +
                ", postcode=" + postcode +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", userId=" + userId +
                '}';
    }
}
